#define  _CRT_SECURE_NO_WARNINGS  1
#include <stdio.h>
#include <string.h>
void fun(char* p)
{
	char* k = p;
	char b[10000] = { 0 };
	int count = 0;
	while (*p != '\0')
	{
		b[count] = *p;
		p++;
		count++;
	}
	while (count)
	{
		*k = b[--count];
		k++;
	}
	*k = '\0';
}
int main()
{
	char arr[10000] = { 0 };
	gets(arr);
	fun(arr);
	puts(arr);
	return 0;
}